import datetime
import hashlib

from lib import file_utils

file1 = open('E:\\DispathRepairSheetRecordAction.class', 'rb')
file2 = open('E:\\test\\DispathRepairSheetRecordAction.class', 'rb')
file3 = open('D:\\dev-app-packages\\ideaIU-2018.1.5.exe', 'rb')

print(hashlib.md5(file1.read()).hexdigest())
print(hashlib.md5(file2.read()).hexdigest())

print(datetime.datetime.now())
print(file_utils.calc_file_md5('D:\\dev-app-packages\\cn_sql_server_2008_r2_enterprise_x86_x64_ia64_dvd_522233.iso'))
print(datetime.datetime.now())
